<html>
    <head>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    <body>       
        <?php
        require_once("conn.php");

        $packid = $_GET['id'];


        if (isset($packid)) {
            $sql = "SELECT * FROM t_pack WHERE packid = " . $packid;
            $db = new DBC();
            $data = $db->fetchData($sql);
            ?> 
        <form action="packEdit.php" method="POST">
            <div class="contact_form">
                <div class="form_subtitle">all fields are requierd</div>          
                <div class="form_row">
                    <label class="contact"><strong>名称:</strong></label>
                    <input name="name" type="text" class="contact_input" />
                </div>  

                <div class="form_row">
                    <label class="contact"><strong>年份:</strong></label>
                    <input name="year" type="text" class="contact_input" />
                </div> 
                <div class="form_row">
                    <label class="contact"><strong>月份:</strong></label>
                    <input name="month" type="text" class="contact_input" />
                </div> 
                
                 <div class="form_row">
                    <label class="contact"><strong>年龄:</strong></label>
                    <input name="age" type="text" class="contact_input" />
                </div>    
                
                <div class="form_row">
                    <label class="contact"><strong>声音地址:</strong></label>
                    <input name="soundURL" type="text" class="contact_input" />
                </div>


                <div class="form_row">
                    <label class="contact"><strong>LOGO地址:</strong></label>
                    <input name="imageURL" type="text" class="contact_input" />
                </div>

                <div class="form_row">
                    <label class="contact"><strong>ImageAid1URL:</strong></label>
                    <input name="ImageAid1URL" type="text" class="contact_input" />
                </div>

                <div class="form_row">
                    <label class="contact"><strong>ImageAid2URL:</strong></label>
                    <input name="ImageAid2URL" type="text" class="contact_input" />
                </div>
                
                <div class="form_row">
                    <a href="#" class="contact">send</a>                    </div>      
            </div>
        </form>
        <?php }
        ?>
    </body>
</html>